﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class WantMeet : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["date"] != null)
        {
            SqlDataSource1.SelectCommand = SqlDataSource1.SelectCommand + " where wantmeetinfo.wmidate='" + Request.QueryString["date"].ToString()+"'";
            return;
        }
        if (Request.QueryString["city"] != null)
        {
            string sql=Request.QueryString["city"].ToString();
            SqlDataSource1.SelectCommand = SqlDataSource1.SelectCommand + " where wantmeetinfo.wmiid='" + sql + "'";
            return;
        }
        if (Request.QueryString["bz"] != null)
        {
            SqlDataSource1.SelectCommand = SqlDataSource1.SelectCommand + " where wantmeetclass.wmid=" + Request.QueryString["bz"].ToString();
            return;
        }
    }
}
